﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;


namespace Code_Group3.Data
{
    public class Connection
    {
        
        static string strCon = "Data Source=.\\SQLEXPRESS;Initial Catalog=ATMSystem;Integrated Security=True";
        public static SqlConnection conn ;
        public static SqlConnection Connect()
        {
            conn = new SqlConnection(strCon);
            try
            {
                conn.Open();
                return conn;
            }
            catch (Exception ex)
            {
                return conn;
            }
        }
        
    }
}